package com.ruifu.proj.mapper;

import com.fhzncloud.cloud.common.security.service.CloudUser;
import com.ruifu.common.po.PmActiveMain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lcq
 */
@Mapper
public interface PmActiveMainMapper {

    /**
     * 新建
     * @param pmActiveMain
     * @param cloudUser
     */
    void insert(@Param("pmActiveMain") PmActiveMain pmActiveMain, @Param("cloudUser") CloudUser cloudUser);

    /**
     * 根据id查询
     * @param ptId
     * @return
     */
    List<PmActiveMain> findByPtId(Long ptId);


    /**
     * 修改
     * @param pmActiveMain
     * @param cloudUser
     */
    void update(@Param("pmActiveMain") PmActiveMain pmActiveMain, @Param("cloudUser") CloudUser cloudUser);

}
